<html lang="en" dir="ltr">
<body>
<div id="maindiv" style="padding-top:50px">Hello World!</div>
</body>
<script>
function recordingFinished() {
  dump(`RecReplaySendAsyncMessage Example__Finished`);
}
async function foo() {
  console.log("foo");
  bar();
  await baz(4);
  setTimeout(recordingFinished, 0);
}
function bar() {
  console.log("bar");
}
async function baz(n) {
  console.log("baz", n);
  if (n) {
    await new Promise(r => setTimeout(r, 0));
    await baz(n - 1);
  }
  return n;
}
foo();
</script>
</html>
